<template>
  <div style="padding: 8px 20px 20px 20px">
    <el-row :gutter="20">
      <el-col :span="4">
        <div style="font-size: 20px;font-weight: bold;margin: 8px 0 20px 0;"> 产品分类销量分析</div>
      </el-col>
    </el-row>
    <crm-pie
      :series-data="seriesData"
    >
      <template slot="table">

      </template>
    </crm-pie>
  </div>
</template>

<script>
import CrmPie from '@/components/Echarts/Pie/Index'

export default {
  name: 'ProductCategory',
  components: { CrmPie },
  props: {},
  data() {
    return {
      tableData: [],
      seriesData: [
        { value: 40, name: '水果类' },
        { value: 38, name: '饮品类' },
        { value: 32, name: '日用类' },
        { value: 30, name: '体育类' },
        { value: 28, name: '电子类' },
        { value: 26, name: '奢侈品' },
        { value: 22, name: '服装类' },
        { value: 18, name: '电器类' }
      ]
    }
  },
  // 在实例创建完成后被立即调用
  created() {
    for (let i = 0; i < this.seriesData.length; i++) {
      this.seriesData[i].value = Math.round(Math.random() * 100)
    }
  },
  // 实例被挂在后调用
  mounted() {

  },
  // 方法
  methods: {}
}
</script>

<style scoped>

</style>
